<?php
class CP_AdminMenuController extends XPHP_Controller
{	
	public function indexAction()
	{
		//Lấy thông tin đơn hàng, comment, liên hệ chưa được xử lý
		$modelComment = new Areas_CP_Models_Comment();
		$this->view->totalComment = count($modelComment->select_all("`approve`=0"));
		
		$modelContact = new Areas_CP_Models_Contacts();
		$this->view->totalContact = count($modelContact->select_all("`read`=0"));
		
		$modelOrder = new Areas_CP_Models_Orders();
		$this->view->totalOrder = count($modelOrder->select_all("`status`=0"));
		
		$this->view->username = $this->helper->session->admin->username;
		
		return $this->view();
	}
}